package com.wx.tgp.designpattern.builderPattern.product;

import java.util.ArrayList;
import java.util.List;

/**
 * 产品类
 */
public class Product {
    
    private List<String> products = new ArrayList<String>();
    
    public void addProduct(String prot){
        products.add(prot);
    }
    
    public void show(){
        for (String product : products) {
            System.out.println(product);
        }
    }
    
}
